Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###REPLACE###
- while (!digitalRead(home_switch)) { // Make the Stepper move CW until the switch is deactivated
- stepperX.moveTo(initial_homing);
- stepperX.run();
- initial_homing+=home_step;
- //delay(1);
- }
- ###with###
- stepperX.moveTo(home_step);
- while (!digitalRead(home_switch)) { // Make the Stepper move CW until the switch is deactivated
- stepperX.run();
- //delay(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement